package cn.wolfcode.shop.redis.key;

import lombok.Getter;
import lombok.Setter;

/**
 * Created by wolfcode-lanxw
 */
public class UserKeyPrefix extends BaseKeyPrefix {
    public static final String TOKEN_NAME = "UserToken";
    public static final String USER_BY_ID_LOCK = "userByIdLock";
    public UserKeyPrefix(String prefix, int expireSeconds) {
        super(prefix, expireSeconds);
    }
    public static UserKeyPrefix USER_TOKEN = new UserKeyPrefix("UserToken:",60*30);//用户token的key
    public static UserKeyPrefix USER_BY_ID = new UserKeyPrefix("userById:",-1);//根据id获取用户
    public static UserKeyPrefix USER_BY_ID_NULL = new UserKeyPrefix("userById:",60);//根据id获取用户
}
